package top.fyukina.fymil.parsers;

public class ParserType {
    private final String name;
    public ParserType(String name) {
        this.name = name;
    }
    @Override
    public String toString() {
        return name;
    }
    @Override
    public int hashCode() {
        return name.hashCode();
    }
    public static final ParserType CMD = new ParserType("command");
    public static final ParserType EXP = new ParserType("expression");
    public static final ParserType NUM = new ParserType("number");
    public static final ParserType BOOL = new ParserType("boolean");
    public static final ParserType STR = new ParserType("string");
    public static final ParserType COM = new ParserType("common");
}